<%-- 
    Document   : rpt_inventarioGeneral
    Created on : 08-30-2012, 10:52:13 AM
    Author     : marco.castro
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<jsp:include page="includeCSSjs.jsp"/>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        
		<script type="text/javascript">
			function showReport(){
				
				var desde = formateaFecha("cal-field-78");
								
				var hasta = formateaFecha("cal-field-79");
								
				var url = "http://192.168.1.200:8080/JasperReportsIntegration/report?_repName=RG-AL-DT-DRT-11&_repFormat=pdf&fecDesde="+desde+"&fecHasta="+hasta+"&_dataSource=colectivas";
				
				 window.open(url, '_self',false);
			      
			}
		</script>
    </head>
    <link href="../resources/css.css" rel="stylesheet" type="text/css" />
    <body>
        <font class="divTextoEncabezado">Reporte de Diferencias Laborales</font>
        <br><br>
        <form:form method="post" action="report" commandName="report">

<table width="50%" border="0">
  <tr>
  
  <td><form:label class="text0" path="fechaDesde" >Desde Fecha:</form:label></td>
  <td><form:input readonly="true" path="fechaDesde" id="cal-field-78" size="17" maxlength="10" class="required date inputCalendario0" />
			<input type=image src="../resources/img/calendario.png" width="16" height="16" id="cal-button-78" class="inputCalendario">
			<script type="text/javascript">
						Calendar.setup({
						  inputField    : "cal-field-78",
						  button        : "cal-button-78",
						  align         : "Br"
						});
			</script>
  </td>
  </tr>
  
  <tr>
  
  <td><form:label class="text0" path="fechaHasta" >Hasta Fecha:</form:label></td>
  <td><form:input readonly="true" path="fechaHasta" id="cal-field-79" size="17" maxlength="10" class="required date inputCalendario0" />
			<input type=image src="../resources/img/calendario.png" width="16" height="16" id="cal-button-79" class="inputCalendario">
			<script type="text/javascript">
						Calendar.setup({
						  inputField    : "cal-field-79",
						  button        : "cal-button-79",
						  align         : "Br"
						});
			</script>
  </td>
  </tr>
</table>

<div class='divBotonGenerarReporte0'>
		<a href="#" onclick="showReport()"><img src="../resources/img/boton_generarReporte.png" width="123" height="31" class="inputBoton"></a>
		
	</div>
</form:form>

<div class='divTablaRpt0'>
</div>
</body>
</html>
